<!--{eval $_TPL['titles'] = array('新同居时代 - 首页');}-->
<!--{template header}-->
<!--{template house/view/menu}-->
<div class="s_clear">
	<div style="background-color: #FFFFFF; line-height: 25px;">
		<div style="border: 5px solid rgb(229, 235, 243); padding: 25px;">
			<table width="100%" cellspacing="1" cellpadding="0" border="0">
			 <tbody>
				<tr>
					<td width="75%" valign="top">
					<!--{if $my_house}-->
						<table width="100%" cellspacing="0" cellpadding="0">
							<tbody>
								<tr>
									<td align="center">
										<div id="house_me"><ul>
											<li><a target='_blank' href="space.php?uid={$now_uid}">
												<span class="light">{$_SN[$now_uid]}</span> 
												<img src="house/view/img/home.gif" />
											</a></li>
											<li><div class="avatar48" style="text-align:left;"><a title="{$_SN[$user['uid']]}" href="house.php?ac=index&uid={$now_uid}"><!--{avatar($now_uid,small)}--></a></div></li>
											<li>当前住在这里，名称：&lt;{$my_house['name']}&gt;，类型：{$house_kind[$my_house['cid']]}，房东是 <a href="house.php?ac=index&uid={$my_house['uid']}">{$_SN[$my_house['uid']]}</a>
												<p style="margin-top: 10px;"><img border="0" src="house/view/house/{$my_house['cid']}.jpg" align='left' /></p>
											</li>
										</ul></div>
										<div style="clear:both;"></div>
									</td>
								</tr>
								<tr>
									<td align="center" style="padding-top: 10px;">
										<!--{if $user['user_status']}-->
											<p><a href="space.php?uid={$user['uid']}" target="_blank">{$_SN[$user['uid']]} <img src="house/view/img/home.gif" title="到TA的主页看看"/></a>  正在和 <a href="space.php?uid={$user['live_with_uid']}" target="_blank">{$_SN[$user['live_with_uid']]} <img src="house/view/img/home.gif" title="到TA的主页看看"/></a>同居 </p>
											<div style="padding-left: 186px;"><div id="gift_buy"><ul>
												<li><div class="avatar48" style="text-align:left;"><a title="{$_SN[$user['uid']]}" href="house.php?ac=index&uid={$user['uid']}"><!--{avatar($user['uid'],small)}--></a></div></li>
												<li style="margin-top: 8px;"><img src="house/view/img/and.jpg" /></li>
												<li><div class="avatar48" style="text-align:left;"><a title="{$_SN[$user['live_with_uid']]}" href="house.php?ac=index&uid={$user['live_with_uid']}"><!--{avatar($user['live_with_uid'],small)}--></a></div></li>
											</ul></div></div>
											<div style="clear:both;"></div>
											<p>
											<!--{if $uid != $user['live_with_uid'] && $uid != $user['uid']}-->
												<!--{if $user['sex'] == $_SGLOBAL['member']['sex']}-->
												把{$_SN[$user['live_with_uid']]} <input type="button" class="submit" value="抢过来" onclick="house.find($user['live_with_uid']);"/>
												<!--{else}-->
												把{$_SN[$user['uid']]} <input type="button" class="submit" value="抢过来"  onclick="house.find($user['uid']);"/>
												<!--{/if}-->
											<!--{/if}-->
											</p>
										<!--{else}-->
											<p><span class="pheadpic"><a title="{$_SN[$user['uid']]}" href="house.php?ac=index&uid={$user['uid']}"><!--{avatar($user['uid'],small)}--></a></span> 目前还是单身</p>
											<p style="margin-top: 20px;">{$_SN[$user['uid']]} <a href="space.php?uid={$user['uid']}"><img src="house/view/img/home.gif" /></a> 你可以 <a href='#' onclick="return house.find($user['uid']);">邀请</a> <a href="house.php?ac=gift&touid={$user['uid']}">送礼物</a> <a href='house.php?ac=house&uid={$user['uid']}'>看房产</a></p>
										<!--{/if}-->
									</td>
								</tr>
							</tbody>
						</table>
					<!--{else}-->
						<table width="100%" cellspacing="0" cellpadding="0">
							<tbody>
								<tr>
									<td  align="center" style="padding-bottom: 8px;"><a target="_blank" href="space.php?uid={$user['uid']}" title="到TA的主页看看">{$_SN[$user['uid']]} <img src="house/view/img/home.gif" /></a> 目前正在流浪街头，如果您当前正好单身，可以 <a href="#" onclick="return house.find({$user['uid']});">邀请TA</a> 合租，查看<a href="house.php?ac=house&uid={$user['uid']}">TA的房产</a>！ </td>
								</tr>
								<tr>
									<td align="center">
										<img border="0" src="house/view/img/out.jpg"/>
									</td>
								</tr>
							</tbody>
						</table>
						<!--{/if}-->
					</td>
					<td width="25%" valign="top">
						<!--{template house/view/load}-->
					</td>
				</tr>
			 <tbody>
			</table>
		</div>
		<div style="clear:both"></div>
		<div style="border: 5px solid rgb(229, 235, 243); border-top:none;width:auto;padding: 25px;">
			<table width="100%" cellspacing="1" cellpadding="0" border="0">
			 <tbody>
				<tr>
					<td width="100%" valign="top" colspan=2>
						<div class="tabs_header">
							<ul class="tabs">
								<li class="active"  id="gift_my_1"><a href="#" onclick="return house.get_my_gift({$now_uid}, 1);"><span>TA收到的礼物</span></a></li>
								<li  id="gift_my_0"><a href="#" onclick="return house.get_my_gift({$now_uid}, 0);"><span>谁送的礼物</span></a></li>
								<li><a href="house.php?ac=gift&touid={$now_uid}"><span>送TA礼物</span></a></li>
							</ul>
						</div>
						<div style="clear:both"></div>
					</td>
				</tr>
				<tr>
					<td width="100%" colspan=2>
						<div  id="gift_my" class="gift_my">
							<p class='loading'></p>
						</div>
						<div style="clear:both"></div>
					</td>
				</tr>
				<tr><td width="100%" valign="top" colspan=2 height=10></td></tr>
		<!--{if $status['hid']}-->
				<tr>
					<td width="100%" valign="top" colspan=2>
						<div class="tabs_header">
							<ul class="tabs">
								<li class="active"><a href="#" style="cursor:default;" onclick="return false;"><span>同居事件</span></a></li>
							</ul>
						</div>
						<div style="clear:both"></div>
					</td>
				</tr>
				<tr>
					<td width="100%" colspan=2>
						<div  id="history_my" class="gift_my">
							<p class='loading'></p>
						</div>
						<div style="clear:both"></div>
					</td>
				</tr>
				<tr><td width="100%" valign="top" colspan=2 height=10></td></tr>
				<tr>
					<td width="100%" valign="top" colspan=2>
						<div class="tabs_header">
							<ul class="tabs">
								<li class="active"><a href="#" style="cursor:default;" onclick="return false;"><span>甜言蜜语</span></a></li>
							</ul>
						</div>
						<div style="clear:both"></div>
						<div  id="miyu_my" class="gift_my">
							<p class='loading'></p>
						</div>
					</td>
				</tr>
				<tr>
					<td width=50%><input type="text" style="width:99%;height:16px;" id="miyu_my_message" onkeyup="return base.doSubmit(event, 'miyu_add_submit');" maxlength=40 /></td>
					<td style="padding-left: 30px;" width=50%><input type="button" value="发表蜜语" class="submit" id='miyu_add_submit' onclick="house.miyu_add({$status['hid']});"/></td>
				</tr>
		<!--{/if}-->
			</tbody>
			</table>
		</div>
	</div>
</div>

<script type="text/javascript">
house.get_my_gift($now_uid, 1);
house.history_my($user['hid']);
house.miyu_my($user['hid']);
</script>
<!--{template footer}-->